package com.sophossystems.client.asmon.dto;

import java.io.Serializable;


/** 
 * This class represents the primary key of the SERVICIOS table.
 */
public class ServiciosPkDTO implements Serializable
{
	/**
	 * 
	 */
	private static final long serialVersionUID = -5664237978656507264L;

	protected int idServicos;

	/** 
	 * This attribute represents whether the primitive attribute idServicos is null.
	 */
	protected boolean idServicosNull;

	/** 
	 * Sets the value of idServicos
	 */
	public void setIdServicos(int idServicos)
	{
		this.idServicos = idServicos;
	}

	/** 
	 * Gets the value of idServicos
	 */
	public int getIdServicos()
	{
		return idServicos;
	}

	/**
	 * Method 'ServiciosPk'
	 * 
	 */
	public ServiciosPkDTO()
	{
	}

	/**
	 * Method 'ServiciosPk'
	 * 
	 * @param idServicos
	 */
	public ServiciosPkDTO(final int idServicos)
	{
		this.idServicos = idServicos;
	}

	/** 
	 * Sets the value of idServicosNull
	 */
	public void setIdServicosNull(boolean idServicosNull)
	{
		this.idServicosNull = idServicosNull;
	}

	/** 
	 * Gets the value of idServicosNull
	 */
	public boolean isIdServicosNull()
	{
		return idServicosNull;
	}

	/**
	 * Method 'equals'
	 * 
	 * @param _other
	 * @return boolean
	 */
	@Override
	public boolean equals(Object _other)
	{
		if (_other == null) {
			return false;
		}
		
		if (_other == this) {
			return true;
		}
		
		if (!(_other instanceof ServiciosPkDTO)) {
			return false;
		}
		
		final ServiciosPkDTO _cast = (ServiciosPkDTO) _other;
		if (idServicos != _cast.idServicos) {
			return false;
		}
		
		if (idServicosNull != _cast.idServicosNull) {
			return false;
		}
		
		return true;
	}

	/**
	 * Method 'hashCode'
	 * 
	 * @return int
	 */
	@Override
	public int hashCode()
	{
		int _hashCode = 0;
		_hashCode = 29 * _hashCode + idServicos;
		_hashCode = 29 * _hashCode + (idServicosNull ? 1 : 0);
		return _hashCode;
	}

	/**
	 * Method 'toString'
	 * 
	 * @return String
	 */
	@Override
	public String toString()
	{
		StringBuffer ret = new StringBuffer();
		ret.append( "com.sophossystems.client.asmon.dto.ServiciosPk: " );
		ret.append( "idServicos=" + idServicos );
		return ret.toString();
	}

}
